// Auto-Join.cpp : Defines the initialization routines for the DLL.
//

#include "stdafx.h"
#include "Auto-Join.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#endif


// CAutoJoinApp

BEGIN_MESSAGE_MAP(CAutoJoinApp, CWinApp)
END_MESSAGE_MAP()


// CAutoJoinApp construction

CAutoJoinApp::CAutoJoinApp()
{
	// TODO: add construction code here,
	// Place all significant initialization in InitInstance
}


// The one and only CAutoJoinApp object

CAutoJoinApp theApp;


// CAutoJoinApp initialization

BOOL CAutoJoinApp::InitInstance()
{
	CWinApp::InitInstance();
	OleInitialize(NULL);
	return TRUE;
}

DLL_EXPORT int GetPluginCount() {
	return 1;
}

DLL_EXPORT BOOL GetPlugin(int iPlugin, IPlugin **plugin) {
	switch(iPlugin) {
		case 0:
			*plugin = new CAutoJoinPlugin();
			return TRUE;


	//CTestDlg* cWnd = new CTestDlg(cParent);
	//cWnd->Create(CTestDlg::IDD, cParent);
	//CRect r;
	//cParent->GetWindowRect(&r); 
	//cParent->ScreenToClient(&r);
	//cWnd->SetWindowPos(cParent,r.left,r.top, r.Width(), r.Height(), SWP_NOZORDER);
	//return cWnd;
		default:
			return FALSE;
	}
}

